package com.esunrise.shop.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.esunrise.shop.common.entity.SysComment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysCommentMapper extends BaseMapper<SysComment> {
    SysComment findById(int id);

    int getAllCountByGoods(int id);

    int getAllCountByMt(int merchant);

    List<SysComment> findByGoodsLimit(int goods,int preNum,int sufNum);

    int insertOld(int user, int goods, int merchant, String context, long createTime);

    int deleteByIdOld(int id);
}
